//
//  CellLikeCollect.m
//  project-A (pianke)
//
//  Created by dllo on 16/2/1.
//  Copyright © 2016年 scott. All rights reserved.
//

#import "CellLikeCollect.h"

@implementation CellLikeCollect

-(void)dealloc{
    
    [self.image release];
    [super dealloc];
}


-(instancetype)initWithFrame:(CGRect)frame{
    
    self = [super initWithFrame:frame];
    if (self) {
        self.image = [[UIImageView alloc]init];
        
        [self.contentView addSubview:self.image];
        
        self.image.backgroundColor = [UIColor redColor];
    }
    
    return self;
}

-(void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes{
    
    self.image.frame = self.contentView.frame;
    
}


@end
